package com.zj.processors;

import com.zj.bean.TableInfo;
import com.zj.job.CodeSnippetJob;
import org.springframework.stereotype.Component;

@Component
public class FormItemProcessor extends BaseProcessor implements TemplateProcessor{


    @Override
    public String getName() {
        return "formItem";
    }

    @Override
    public String process(TableInfo tableInfo, CodeSnippetJob codeSnippetJob) {
        simpleProcess(tableInfo,codeSnippetJob, "template-code-snippet/formItem.vm");
        codeSnippetJob.log("-------------------------------------");
        simpleProcess(tableInfo,codeSnippetJob, "template-code-snippet/formValidate.vm");
        codeSnippetJob.log("-------------------------------------");
        simpleProcess(tableInfo,codeSnippetJob, "template-code-snippet/formSetValue.vm");
        return "ok";
    }
}
